package com.blkj.iam.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 租户表单对象
 *
 * @author haoxr
 * @since 2022/4/12 11:04
 */
@Schema(description = "租户表单对象")
@Data
public class TenantForm {

    @Schema(description = "租户ID")
    private Long id;

    @Schema(description = "租户名")
    @NotBlank(message = "租户名不能为空")
    private String name;

    @Schema(description = "状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "应用")
    @NotNull(message = "应用不能为空")
    private Long clientId;
}
